Feedback-enabled magnetic device